<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head><title>Accueil</title></h:head>

<h:body>

<h:form>
	<table>
	<tr>
		<td>Login: <h:inputText value="#{monBean.login}" required="true" requiredMessage="Login : obligatoire" id="login"/></td>
		<td><h:message for="login"/></td>
	</tr>
	<tr>
		<td>
			Password: 
			<h:inputText value="#{monBean.password}" required="true" requiredMessage="Password : obligatoire" validatorMessage="Password : minimum 3 caractères" id="password">
				<f:validateLength minimum="3"/>
			</h:inputText>
		</td>
		<td><h:message for="password"/></td>
	</tr>
	<tr>
		<td>
			Montant: 
			<h:inputText value="#{monBean.montant}" required="true" requiredMessage="Montant : obligatoire" converterMessage="Montant : doit être un nombre" validator="#{monBean2.validerMontant}" id="montant"/>
		</td>
		<td><h:message for="montant"/></td>
	</tr>
	<tr>
		<th><h:commandButton value="Envoyer" action="#{monBean.envoyer}"/></th>
	</tr>
	</table>
</h:form>

</h:body>


</html>